package com.nnxieli.trans

import android.app.Application
import com.hd.trans.TranslationEntry
import com.hd.trans.config.CallbackProperty
import com.hd.trans.config.ThemeProperty
import com.hd.trans.config.TranslationProperty
import com.nnxieli.trans.util.LimitUserImpl
import com.nnxieli.trans.util.RecordImpl
import com.nnxieli.trans.util.TrackerImpl

class DemoApplication: Application() {


    override fun onCreate() {
        super.onCreate()

        TranslationEntry.getInstance().init(
            this,
            true,
            TranslationProperty.Builder()
                //.setAppName(appName)
                //.setAndroidId(androidId)
                //.setProductId(productId)
                //.setProductInfo(productInfo)
                //.setProductCredits(credits)
                //.setAppPackageName(packageName)
                //.setAppVersionName(versionName)
                //.setChannel(channel)
                //.setAppVersion(versionCode)
                //.setDisableLanguages(listOf("zh"))
                .build(),
            ThemeProperty.Builder()
                //.setThemeColor("#FF0000")
                //.setLogoResId(R.mipmap.logo)
                .build(),
            CallbackProperty.Builder()
                .setTrackerListener(TrackerImpl.getInstance())
                //.setRecordFileCallback(RecordImpl.getInstance())
                .setLimitUseListener(LimitUserImpl.getInstance())
                .build()
        )

    }

}